function request(obj, callback, error) {
    try {
        $.ajax({
            type: obj.method,
            data: obj.data,
            url: obj.url,
            success: function (result) {
                callback(result);
            },
            error: function (result) {
                error(result)
            }
        });
    } catch (e) {
        console.log(e);
    }

}

